Optimal. Leaf size=123 \[ -\frac {5 a \cos (e+f x) \, _2F_1\left (\frac {1}{2},\frac {7}{6};\frac {3}{2};\frac {1}{2} (1-\sin (e+f x))\right ) \sqrt [6]{1+\sin (e+f x)}}{3 \sqrt [6]{2} f (a+a \sin (e+f x))^{2/3}}+\frac {7 \sec (e+f x) \sqrt [3]{a+a \sin (e+f x)}}{f}-\frac {3 \sec (e+f x) (a+a \sin (e+f x))^{4/3}}{a f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {2792, 2934,
2731, 2730} \begin {gather*} -\frac {5 a \sqrt [6]{\sin (e+f x)+1} \cos (e+f x) \, _2F_1\left (\frac {1}{2},\frac {7}{6};\frac {3}{2};\frac {1}{2} (1-\sin (e+f x))\right )}{3 \sqrt [6]{2} f (a \sin (e+f x)+a)^{2/3}}-\frac {3 \sec (e+f x) (a \sin (e+f x)+a)^{4/3}}{a f}+\frac {7 \sec (e+f x) \sqrt [3]{a \sin (e+f x)+a}}{f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2730
Rule 2731
Rule 2792
Rule 2934
Rubi steps
\begin {align*} \int \sqrt [3]{a+a \sin (e+f x)} \tan ^2(e+f x) \, dx &=-\frac {3 \sec (e+f x) (a+a \sin (e+f x))^{4/3}}{a f}+\frac {3 \int \sec ^2(e+f x) \sqrt [3]{a+a \sin (e+f x)} \left (\frac {4 a}{3}+a \sin (e+f x)\right ) \, dx}{a}\\ &=\frac {7 \sec (e+f x) \sqrt [3]{a+a \sin (e+f x)}}{f}-\frac {3 \sec (e+f x) (a+a \sin (e+f x))^{4/3}}{a f}+\frac {1}{3} (5 a) \int \frac {1}{(a+a \sin (e+f x))^{2/3}} \, dx\\ &=\frac {7 \sec (e+f x) \sqrt [3]{a+a \sin (e+f x)}}{f}-\frac {3 \sec (e+f x) (a+a \sin (e+f x))^{4/3}}{a f}+\frac {\left (5 a (1+\sin (e+f x))^{2/3}\right ) \int \frac {1}{(1+\sin (e+f x))^{2/3}} \, dx}{3 (a+a \sin (e+f x))^{2/3}}\\ &=-\frac {5 a \cos (e+f x) \, _2F_1\left (\frac {1}{2},\frac {7}{6};\frac {3}{2};\frac {1}{2} (1-\sin (e+f x))\right ) \sqrt [6]{1+\sin (e+f x)}}{3 \sqrt [6]{2} f (a+a \sin (e+f x))^{2/3}}+\frac {7 \sec (e+f x) \sqrt [3]{a+a \sin (e+f x)}}{f}-\frac {3 \sec (e+f x) (a+a \sin (e+f x))^{4/3}}{a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 9.37, size = 290, normalized size = 2.36 \begin {gather*} \frac {\sqrt [3]{a (1+\sin (e+f x))} \left (\frac {\left (\frac {3}{2}+\frac {3 i}{2}\right ) (-1)^{3/4} e^{-i (e+f x)} \left (-20 e^{i (e+f x)} \sqrt {\cos ^2\left (\frac {1}{4} (2 e+\pi +2 f x)\right )} \, _2F_1\left (-\frac {1}{3},\frac {1}{3};\frac {2}{3};-i e^{-i (e+f x)}\right )+2 \left (1+i e^{-i (e+f x)}\right )^{2/3} \left (1+e^{2 i (e+f x)}\right ) \, _2F_1\left (\frac {1}{2},\frac {5}{6};\frac {11}{6};\sin ^2\left (\frac {1}{4} (2 e+\pi +2 f x)\right )\right )-5 i \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {5}{3};-i e^{-i (e+f x)}\right ) \sqrt {2-2 \sin (e+f x)}\right )}{\sqrt {2} \left (1+i e^{-i (e+f x)}\right )^{2/3} \sqrt {i e^{-i (e+f x)} \left (-i+e^{i (e+f x)}\right )^2}}-3 (5+\sec (e+f x)-2 \tan (e+f x))\right )}{3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.14, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right )^{\frac {1}{3}} \left (\tan ^{2}\left (f x +e \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt [3]{a \left (\sin {\left (e + f x \right )} + 1\right )} \tan ^{2}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {tan}\left (e+f\,x\right )}^2\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{1/3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________